package com.msb.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.common.dto.SeckillOrderDto;
import com.msb.common.utils.PageUtils;
import com.msb.common.utils.R;
import com.msb.mall.order.entity.OrderEntity;
import com.msb.mall.order.vo.OrderBalanceVo;
import com.msb.mall.order.vo.OrderSubmitVo;
import com.msb.mall.order.vo.PayVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author dpb
 * @email dengpbs@163.com
 * @date 2022-10-08 23:03:30
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderBalanceVo balanceOrder() throws ExecutionException, InterruptedException;

    R orderSubmit(OrderSubmitVo vo);

    PayVo getOrderByOrderSn(String orderSN);

    void updateOrderStatus(String orderSN, int code);

    void createSeckillOrder(SeckillOrderDto seckillOrderDto);
}

